package com.po;

import java.math.BigDecimal;

/**
 * AbstractBaseMetadataTestId entity provides the base persistence definition of
 * the BaseMetadataTestId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBaseMetadataTestId implements
		java.io.Serializable {

	// Fields

	private String id;
	private String parentid;
	private String dataname;
	private String datavalue;
	private BigDecimal requiring;

	// Constructors

	/** default constructor */
	public AbstractBaseMetadataTestId() {
	}

	/** minimal constructor */
	public AbstractBaseMetadataTestId(String id) {
		this.id = id;
	}

	/** full constructor */
	public AbstractBaseMetadataTestId(String id, String parentid,
			String dataname, String datavalue, BigDecimal requiring) {
		this.id = id;
		this.parentid = parentid;
		this.dataname = dataname;
		this.datavalue = datavalue;
		this.requiring = requiring;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentid() {
		return this.parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	public String getDataname() {
		return this.dataname;
	}

	public void setDataname(String dataname) {
		this.dataname = dataname;
	}

	public String getDatavalue() {
		return this.datavalue;
	}

	public void setDatavalue(String datavalue) {
		this.datavalue = datavalue;
	}

	public BigDecimal getRequiring() {
		return this.requiring;
	}

	public void setRequiring(BigDecimal requiring) {
		this.requiring = requiring;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractBaseMetadataTestId))
			return false;
		AbstractBaseMetadataTestId castOther = (AbstractBaseMetadataTestId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getParentid() == castOther.getParentid()) || (this
						.getParentid() != null
						&& castOther.getParentid() != null && this
						.getParentid().equals(castOther.getParentid())))
				&& ((this.getDataname() == castOther.getDataname()) || (this
						.getDataname() != null
						&& castOther.getDataname() != null && this
						.getDataname().equals(castOther.getDataname())))
				&& ((this.getDatavalue() == castOther.getDatavalue()) || (this
						.getDatavalue() != null
						&& castOther.getDatavalue() != null && this
						.getDatavalue().equals(castOther.getDatavalue())))
				&& ((this.getRequiring() == castOther.getRequiring()) || (this
						.getRequiring() != null
						&& castOther.getRequiring() != null && this
						.getRequiring().equals(castOther.getRequiring())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getParentid() == null ? 0 : this.getParentid().hashCode());
		result = 37 * result
				+ (getDataname() == null ? 0 : this.getDataname().hashCode());
		result = 37 * result
				+ (getDatavalue() == null ? 0 : this.getDatavalue().hashCode());
		result = 37 * result
				+ (getRequiring() == null ? 0 : this.getRequiring().hashCode());
		return result;
	}

}